package com.cskaoyan.javase.operator.arithmetic2.exercise1;

/**
 * @description: 自增自减练习1
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

/**
 * int a = 10;
 * int b = 10;
 * int c = 10;
 * a = b++;
 * c = --a;
 * b = ++a;
 * a = c--;
 *求a，b，c，d的值
 *
 */
public class Demo1 {
    public static void main(String[] args) {
        int a = 10;
        int b = 10;
        int c = 10;
        a = b++; //a=10,b=11,c=10
        c = --a;//a=9,b=11,c=9
        b = ++a;//a=10,b=10,c=9
        a = c--;//a=9,b=10,c=8
        System.out.println(a + "---------" + b + "-------" + c);

    }
}
